determining negative slope